package ${pPackage}.pojo;

import java.io.Serializable;
import javax.persistence.*;
import javax.validation.constraints.*;
import java.math.BigDecimal;
import io.swagger.annotations.*;
import lombok.*;

/**
 * ${ClassName}实体类
 *
 * @author  ${author}
 * @date ${createTime}
 */
public class ${ClassName} implements Serializable {

    <#list table.columns as column>
    <#if column.columnComment??>
    /**
     * ${column.columnComment}
     */
    </#if>
<#if column.columnKey?? && column.columnKey=="PRI">
    @Id
</#if>
    private ${column.columnType} ${column.columnName2};

    </#list>

    <#list table.columns as column>

    public void set${column.columnName2?cap_first}(${column.columnType} value) {
        this.${column.columnName2} = value;
    }

    public ${column.columnType} get${column.columnName2?cap_first}() {
       return this.${column.columnName2};
    }
    </#list>
}
